<!DOCTYPE html>
<template>
  <div class="container">
    <div class="box" @click="gotoPage">
      <span class="my-guanzhu">{{ label }}</span>
      <div class="right">
        <span>{{ desc }}</span>
        <img class="edit" src="@/assets/img/u227.png" alt="">
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {

      }
    },
    props: ['label', 'desc'],
    methods: {
      gotoPage(){
        this.$emit('gotoPage', this.label)
      }
    }
  }
</script>

<style scoped>
  /* #content ul {
    width: 100vw;
    margin-top: 2vw;
  } */

  .container {
    width: 100vw;
    margin-top: 2vw;
    padding-left: 6vw;
  }

  .box {
    display: flex;
    width: 100%;
    padding: 5vw 0;
    justify-content: space-between;
    border-bottom: 1px solid #e4e4e4;
  }

  .box .my-guanzhu {
    display: flex;
    color: #202020;
  }

  .box .right {
    display: flex;
    color: #a1a1ab;
    font-size: 3.5vw;
  }

  .box .edit {
    width: 5vw;
    margin-right: 3vw;
    vertical-align: middle;
    margin-top: -.5vw;
    margin-left: 2vw;
  }
</style>
